<?php

namespace App\Http\Controllers;
use Illuminate\Support\Facades\DB;

/**
 * 
 */
class IndexController extends Controller
{
	
	public function index()
	{
		dump(123);
	}

	public function test($id)
	{

		//所有
		$list = DB::table('ad_table')->get();
		//一条
		$value = DB::table('ad_table')->where('uid',447)->first();

		return view('user.index',[
            'id' => $id,
            'list'=>$list
        ]);
	}
}